Scenario: in some environments, we need to determine the parameters of a (some) hyperlink based on the values of JavaScript variables on the page, such as"Http://www.bla.com/test.aspx? Var1 ="To determine how much var1 is equal to, it must be
JS and a hrefNotice the semicolon ending in the href, closing the quotation marks. a href = "javascript:;" > empty link a > a href = "javascript: Alert (' a '); " > pop-up a 650) this.width=650; "title=" image "style="
JS and a href className JS compile the sequence and run the sequence string or variable embedded in brackets instead of the point number represents the attribute, hrefclassnameJS and a href
Note The End Of The semicolon in href and close the
Js: Simple Method for getting the URL of the current page and window. location. href, window. location. href
Using JavaScript to get the URL of the current page seems complicated. If you think about the problem for the first time, many people may
JS and a hrefNotice the semicolon ending in the href, closing the quotation marks.href= "javascript:;" > Empty link a>href= "javascript: Alert (' a '); > popup a>Generally, it may be the code, generally let it empty. Empty can also use the pound
[JavaScript] obtain the URL of the current page and window. location. href, window. location. href
Using Javascript to get the URL of the current page seems complicated. If you think about the problem for the first time, many people may wonder which
HTML (1) href and Action, get post, hrefaction
1. Differences between href and Action
Href can only get parameters, and action can get and post parameters.
Href is generally used for a single connection and can contain parameters (URL rewriting).
Window. location. href after the jump, the session becomes invalid in a php call window. location. href after the jump, the session becomes invalid on the page after the jump. how can this problem be solved?
Reply to discussion
1. the difference between href and ActionHREF can only get parameters,action can get parameters and can post ParametersHREF is generally used for a single connection, can take parameters (URL rewrite), is requested by the Get method, in the
Do a project, mainly to be able to automatically change the template, is actually inserted into the database that CSS name, and then the foreground to take out that value, put into the GETCSS variable (getcss own definition of a variable), and then
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.